package com.haorui.lygyd.employeemanager.dto;

import com.haorui.base.core.utils.BeanUtil;
import com.haorui.base.core.vo.DataTransferObject;
import com.haorui.lygyd.employeemanager.entity.YuangongEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @support: 西安鑫正豪信息技术有限公司
 * @author: 系统生成
 * @version: 1.0
 * @Date: Wed Feb 27 00:26:58 CST 2019
 * @Description: 员工
 */
@Data
public class YuangongDto implements DataTransferObject<YuangongEntity> {

    private String id;
    @ApiModelProperty(value = "姓名")
    private String yname;
    @ApiModelProperty(value = "身份证")
    private String sfz;
    @ApiModelProperty(value = "性别")
    private String sex;
    @ApiModelProperty(value = "手机号码")
    private String tel;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "支付宝账号")
    private String zfb;
    @ApiModelProperty(value = "学校ID")
    private String schoolId;
    @ApiModelProperty(value = "学校名称")
    private String schoolName;
    @ApiModelProperty(value = "是否锁定")
    private String shifouSuoding;
    @ApiModelProperty(value = "上级ID")
    private String pId;
    @ApiModelProperty(value = "上级姓名")
    private String pName;

    @Override
    public YuangongEntity buildPO() {
        YuangongEntity yuangongEntity = new YuangongEntity();
        BeanUtil.beanCopyIgnoreDefault(this, yuangongEntity);
        return yuangongEntity;
    }

    @Override
    public String getId() {
        return this.id;
    }
}
